{# default Sliding pagination control implementation #}

{% if pageCount > 1 %}
<div class="pagination ajax">
    {% if first is defined and current != first %}
        <span class="first">
{#             <a href="{{ path(route, query|merge({(pageParameterName): first})) }}">&lt;&lt;</a>#}
			<button type="button" class="btn btn-primary" onclick="ArticleJavascript.paging({{ first }})">
				&lt;&lt;
			</button>
        </span>
    {% endif %}

    {% if previous is defined %}
        <span class="previous">
{#             <a href="{{ path(route, query|merge({(pageParameterName): previous})) }}">&lt;</a>#}
			<button type="button" class="btn btn-primary" onclick="ArticleJavascript.paging({{ previous }})">
				&lt;
			</button>
        </span>
    {% endif %}

    {% for page in pagesInRange %}
        {% if page != current %}
            <span class="page">
{#                 <a href="{{ path(route, query|merge({(pageParameterName): page})) }}">{{ page }}</a>#}
                <button type="button" class="btn btn-primary" onclick="ArticleJavascript.paging({{ page }})">
					{{ page }}
				</button>
            </span>
        {% else %}
{#             <span class="current">{{ page }}</span>#}
            <button type="button" class="btn btn-info" disabled>
				{{ page }}
			</button>
        {% endif %}

    {% endfor %}

    {% if next is defined %}
        <span class="next">
{#             <a href="{{ path(route, query|merge({(pageParameterName): next})) }}">&gt;</a>#}
			<button type="button" class="btn btn-primary" onclick="ArticleJavascript.paging({{ next }})">
				&gt;
			</button>
        </span>
    {% endif %}

    {% if last is defined and current != last %}
        <span class="last">
{#             <a href="{{ path(route, query|merge({(pageParameterName): last})) }}">&gt;&gt;</a>#}
			<button type="button" class="btn btn-primary" onclick="ArticleJavascript.paging({{ last }})">
				&gt;&gt;
			</button>
        </span>
    {% endif %}
</div>
{% endif %}
